module.exports = (app) => {
  const { INTEGER, TEXT, DATE } = app.Sequelize
  const ArticleDetail = app.model.define('article_detail', {
    id: {
      type: INTEGER(20).UNSIGNED,
      primaryKey: true,
      autoIncrement: true,
      comment: '主键id'
    },
    content: {
      type: TEXT,
      allowNull: false,
      comment: '文章内容'
    },
    created_at: DATE,
    updated_at: DATE
  })
  return ArticleDetail
}
